using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace HamcoWcs.Entitys.Logs
{
    public class LoginLogConfig : IEntityTypeConfiguration<LoginLog>
    {
        public void Configure(EntityTypeBuilder<LoginLog> builder)
        {
            builder.HasComment("前端登录日志");
            builder.Property(x => x.UserName).IsRequired().HasMaxLength(30).HasComment("用户名");
            builder.Property(x => x.LoginIP).IsRequired().HasMaxLength(30).HasComment("登陆IP");
        }
    }
}